package com.yb.custom.annotation.log.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;

/**
 * @author yangbiao
 * @since 2022-03-30 15:24:23
 */
@Data
@ApiModel(description = "OperateLog信息类")
public class OperateLog extends Model<OperateLog> implements Serializable {
    private static final long serialVersionUID = 654022202801078868L;
                    
    @ApiModelProperty("主键ID")
    private String id;
                    
    @ApiModelProperty("日志类型(1-登录|2-操作)")
    private Integer logType;
                    
    @ApiModelProperty("请求类型(GET|POST)")
    private String requestType;
                    
    @ApiModelProperty("请求路径")
    private String requestPath;

    @ApiModelProperty("用户机构")
    private String userOrganization;
                    
    @ApiModelProperty("用户部门")
    private String userDepartment;
                    
    @ApiModelProperty("用户职位")
    private String userPosition;
                    
    @ApiModelProperty("用户姓名")
    private String userFullName;
                    
    @ApiModelProperty("用户角色")
    private String userRole;
                    
    @ApiModelProperty("操作用户名")
    private String operateUsername;
                    
    @ApiModelProperty("操作者IP")
    private String operateIp;
                    
    @ApiModelProperty("操作内容")
    private String operateContent;
                    
    @ApiModelProperty("操作时间")
    private LocalDateTime operateTime;

}
